package metamodel.transformer;

import metamodel.Property;
import metamodel.transformer.BottomUpGraphTransformer;

/**
 * User: fleipold
 * Date: 21-Dec-2007
 * Time: 22:50:09
 */
public class SimpleGraphTransformerAdapter extends SimpleTreeTransformerAdapter implements BottomUpGraphTransformer {
    private final SimpleBottomUpGraphMapper simpleMapperBottomUp;

    public SimpleGraphTransformerAdapter(SimpleBottomUpGraphMapper simpleMapperBottomUp) {
        super(simpleMapperBottomUp);
        this.simpleMapperBottomUp = simpleMapperBottomUp;
    }


    public void mapCycle(Property meta, Object mappedSource, Object orginalSource, Object mappedDestination, Object originalDestination) {
        simpleMapperBottomUp.mapCycle(meta, mappedSource, mappedDestination);
    }

}
